package net.sapfree.core.util.format;

import java.io.IOException;
import java.io.Reader;
public class JavaIOReaderFormat extends ValueObjectFormat
{
	public String getString(Object value, String defaultValue)
	{
		Reader reader = (Reader)value;
		try
		{
			return reader == null ? defaultValue : getString(reader);
		} 
		catch (IOException e)
		{
			throw new RuntimeException(e);
		}
	}
}
